package salary.calculation.config;

import org.springframework.context.MessageSource;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.support.ResourceBundleMessageSource;

/**
 * 统一配置
 * @author liguirong
 */
@Configuration
public class UnifiedConfiguration {

    @Bean("messageSource")
    public MessageSource getMessageSource(){
        ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
        return messageSource;
    }

}
